import { detailApi } from '../../../utils/api';

const getDetailData = (DetailList) => {
  return {
    type: "Detail",
    DetailList,
  }
}

export const getDetailDataAsync = (data) => {
  return async (dispatch) => {
    const res = await detailApi(data);
    console.log(res.data.result);
    dispatch(getDetailData(res.data.result));
  }
}